<?php get_header(); ?>

<div class="container-fluid">
	<!-- Sidebar-Left -->
	<div class="sidebar">
        <div class="well">
          <h5>Manage Authors</h5>
          <ul>
            <li><a href="">Authors</a></li>
            <li><a href="index.php?add">Add New</a></li>
            <li><a href="#">Link</a></li>
            <li><a href="#">Link</a></li>
          </ul>
        </div>
    </div>
	<!-- end of sidebar -->
	  <div class="content">
			<h2>Search for Jokes</h2>
			<form action="" method="get">
				<p>View jokes satisfying the following criteria:</p>
				<div>
					<label for="author">By author:</label>
					<select name="author" id="author">
						<option value="">Any author</option>
						<?php foreach($authors as $author):?>
							<option value="<?php echo $author['id'];?>"><?php echo $author['name']; ?></option>
						<?php endforeach; ?>
					</select>
				</div>
				<br />
				<div>
					<label for="category">By category:</label>
					<select name="category" id="category">
						<option value="">Any category</option>
						<?php foreach($categories as $category): ?>
							<option value="<?php echo $category['id']; ?>"><?php echo $category['name']; ?></option>
						<?php endforeach; ?>
					</select>
				</div>
				<br />
				<div>
					<label for="text">Containing text:</label>
					<input type="text" id="text" name="text" />
				</div>
				<br />
				<div>
					<label for="submit"></label>
					<input type="hidden" name="action" value="search"/>
					<input type="submit" class="btn primary" />
				</div>
			</form>
		</div>
	</div>
</body>
</html>